package com.it.base.core.system.dict.model.from;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class SysDictDataValidatorFormDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(name = "id", value = "主键", dataType = "String")
	private String id;

	/**
	 * 类型
	 */
	@ApiModelProperty(name = "type", value = "类型", dataType = "String", required = true)
	@NotNull(message = "类型必填")
	@NotBlank(message = "类型必填")
	private String type;

	@ApiModelProperty(name = "value", value = "键值", dataType = "String", required = true)
	@NotNull(message = "键值必填")
	@NotBlank(message = "键值必填")
	private String value;

}
